package com.yy.jhl.ui.user.activity;

import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.yy.common.base.BaseActivity;
import com.yy.common.commonutils.SPUtils;
import com.yy.jhl.R;
import com.yy.jhl.app.AppConstant;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by libingn on 2017/12/6.
 */

public class LoginSelectActivity extends BaseActivity {
    @BindView(R.id.login_cgs_parent)
    LinearLayout loginCgsParent;
    @BindView(R.id.login_gys_parent)
    LinearLayout loginGysParent;
    @BindView(R.id.invite_code_login)
    TextView inviteCodeLogin;

    @Override
    public int getLayoutId() {
        return R.layout.act_login_select;
    }

    @Override
    public void initView() {
        showTitle("选择身份");
    }

    @OnClick({R.id.login_cgs_parent, R.id.login_gys_parent, R.id.invite_code_login})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.login_cgs_parent:
                LoginActivity.startAction(mContext,2);
                break;
            case R.id.login_gys_parent:
                LoginActivity.startAction(mContext,1);
                break;
            case R.id.invite_code_login:
                //保存登录类型
                startActivity(LoginWithCodeActivity.class);
                break;
        }
        finish();
    }
}
